﻿#pragma once
#include "QDialog"
#include "TrendChartParam.h"



class QTrendChart;
class TrendChartSetting:public QDialog
{
	Q_OBJECT
public:
	TrendChartSetting(QWidget* parent = nullptr);
	virtual ~TrendChartSetting();
	void inputParam(TrendChartParam* paramPtr, QTrendChart* graph);
protected slots:
	void on_btnBGColor_colorChanged(const QColor& color);
	void on_btnWaveLineColor_colorChanged(const QColor& color);
	void on_btnLSLLineColor_colorChanged(const QColor& color);
	void on_btnUSLLineColor_colorChanged(const QColor& color);
	void on_btnStandardLineColor_colorChanged(const QColor& color);

	void on_doubleSpinBox_yMinValue_valueChanged(double d);
	void on_doubleSpinBox_yMAxValue_valueChanged(double d);
	void on_doubleSpinBox_specLowValue_valueChanged(double d);
	void on_doubleSpinBox_specHightValue_valueChanged(double d);
	void on_doubleSpinBox_specStandardValue_valueChanged(double d);

protected:
	virtual bool event(QEvent* event)override;
private:
	class Internal;
	Internal* p;
};